<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>Insert title here</title>
</head>
<body>
<form name="login" action="LoginDeal.jsp" method="post" onSubmit="Check()">
<label for="">Username：</label>	<input type="text" name="username" size="15" value="" /><br />
<br />
<label for="">Password：</label>	<input type="password" name="password" size="15" value="" /><br />
<table>
<tr>
<td><input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="Manage" tabindex="4" /><label for="RadioButtonList1_0">部门</label></td><td><input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" value="Teacher" tabindex="4" /><label for="RadioButtonList1_1">教师</label></td><td><input id="RadioButtonList1_2" type="radio" name="RadioButtonList1" value="Student" checked="checked" tabindex="4" /><label for="RadioButtonList1_2">学生</label></td>
</tr>
</table>
<input type="submit" name="submit" value="登录" />
<input type="reset" name="reset" value="重置" />

<script language="JavaScript" type="text/javascript">
function Check() {
if(document.login.username.value == "") {
window.alert("账号不能为空！");
return false;
}
if(document.login.password.value == "") {
window.alert("密码不能为空！");
return false;
}
return true;
}
</script>
</form>
</body>
</html>